﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComputerGraphics.Graphics;

namespace ComputerGraphics.Geometry
{
    public abstract class Shape
    {
        public Shape(Texture texture)
        {
            this.texture = texture;
        }

        public abstract Intersection Intersect(Ray r);
        public abstract Intersection InternalIntersect(Ray r);

        protected Texture texture;

        public Texture Mapping
        {
            get { return texture; }
            set { texture = value; }
        }
    }
}
